package com.ljx.itbbs.server.article.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-04-21  10:22
 */
@Getter
public class DislikeEvent extends ApplicationEvent {

    private Long userId;

    private String likeObj;

    private Integer type;

    private Long objId;

    private Integer commentType;

    public DislikeEvent(Object source, Long userId, String likeObj, Integer type, Long objId) {
        super(source);
        this.userId = userId;
        this.likeObj = likeObj;
        this.type = type;
        this.objId = objId;
        this.commentType = null;
    }

    public DislikeEvent(Object source, Long userId, String likeObj, Integer type, Long objId, Integer commentType) {
        super(source);
        this.userId = userId;
        this.likeObj = likeObj;
        this.type = type;
        this.objId = objId;
        this.commentType = commentType;
    }
}
